package us.nchu.tomtiger.service;

import org.springframework.stereotype.Service;
import us.nchu.tomtiger.dao.SmsVerifyCodeDao;
import us.nchu.tomtiger.model.SmsVerifyCode;

import javax.annotation.Resource;

@Service
public class SmsVerifyCodeService {

    @Resource
    private SmsVerifyCodeDao dao;

	public SmsVerifyCodeService(){
	}
	
	public boolean insert(SmsVerifyCode verifyCode){
		return dao.insert(verifyCode);
	}
	
	public SmsVerifyCode query(String phoneNumber){

		return dao.query(phoneNumber);
	}

}
